package com.example.domain;

public class Course {
    private String courseId;         // 课程编号（唯一标识）
    private String courseName;       // 课程名称
    private String courseDescription; // 课程描述
    private int credits;             // 学分
    private String instructor;       // 授课教师
    private String schedule;         // 上课时间表（如"周一 10:00-12:00"）
    private int maxStudents;         // 最大选课人数
    private int enrolledStudents;    // 已选课人数
    private String classroom;        // 上课教室
    private String department;       // 所属院系
    private String prerequisites;

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseDescription() {
        return courseDescription;
    }

    public void setCourseDescription(String courseDescription) {
        this.courseDescription = courseDescription;
    }

    public int getCredits() {
        return credits;
    }

    public void setCredits(int credits) {
        this.credits = credits;
    }

    public String getInstructor() {
        return instructor;
    }

    public void setInstructor(String instructor) {
        this.instructor = instructor;
    }

    public String getSchedule() {
        return schedule;
    }

    public void setSchedule(String schedule) {
        this.schedule = schedule;
    }

    public int getMaxStudents() {
        return maxStudents;
    }

    public void setMaxStudents(int maxStudents) {
        this.maxStudents = maxStudents;
    }

    public int getEnrolledStudents() {
        return enrolledStudents;
    }

    public void setEnrolledStudents(int enrolledStudents) {
        this.enrolledStudents = enrolledStudents;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPrerequisites() {
        return prerequisites;
    }

    public void setPrerequisites(String prerequisites) {
        this.prerequisites = prerequisites;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courseId='" + courseId + '\'' +
                ", courseName='" + courseName + '\'' +
                ", courseDescription='" + courseDescription + '\'' +
                ", credits=" + credits +
                ", instructor='" + instructor + '\'' +
                ", schedule='" + schedule + '\'' +
                ", maxStudents=" + maxStudents +
                ", enrolledStudents=" + enrolledStudents +
                ", classroom='" + classroom + '\'' +
                ", department='" + department + '\'' +
                ", prerequisites='" + prerequisites + '\'' +
                '}';
    }
}